package com.wz.project.rkrgv.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.rkrgv.mapper.MsgRgvRkMapper;
import com.wz.project.rkrgv.domain.MsgRgvRk;
import com.wz.project.rkrgv.service.IMsgRgvRkService;
import com.wz.common.utils.text.Convert;

/**
 * 入库RGV监控Service业务层处理
 * 
 * @author wz
 * @date 2024-01-10
 */
@Service
public class MsgRgvRkServiceImpl implements IMsgRgvRkService 
{
    @Autowired
    private MsgRgvRkMapper msgRgvRkMapper;

    /**
     * 查询入库RGV监控
     * 
     * @param id 入库RGV监控ID
     * @return 入库RGV监控
     */
    @Override
    public MsgRgvRk selectMsgRgvRkById(Long id)
    {
        return msgRgvRkMapper.selectMsgRgvRkById(id);
    }

    /**
     * 查询入库RGV监控列表
     * 
     * @param msgRgvRk 入库RGV监控
     * @return 入库RGV监控
     */
    @Override
    public List<MsgRgvRk> selectMsgRgvRkList(MsgRgvRk msgRgvRk)
    {
        return msgRgvRkMapper.selectMsgRgvRkList(msgRgvRk);
    }

    /**
     * 新增入库RGV监控
     * 
     * @param msgRgvRk 入库RGV监控
     * @return 结果
     */
    @Override
    public int insertMsgRgvRk(MsgRgvRk msgRgvRk)
    {
        return msgRgvRkMapper.insertMsgRgvRk(msgRgvRk);
    }

    /**
     * 修改入库RGV监控
     * 
     * @param msgRgvRk 入库RGV监控
     * @return 结果
     */
    @Override
    public int updateMsgRgvRk(MsgRgvRk msgRgvRk)
    {
        return msgRgvRkMapper.updateMsgRgvRk(msgRgvRk);
    }

    /**
     * 删除入库RGV监控对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMsgRgvRkByIds(String ids)
    {
        return msgRgvRkMapper.deleteMsgRgvRkByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除入库RGV监控信息
     * 
     * @param id 入库RGV监控ID
     * @return 结果
     */
    @Override
    public int deleteMsgRgvRkById(Long id)
    {
        return msgRgvRkMapper.deleteMsgRgvRkById(id);
    }
}
